package com.itcast.homework01.work02;

/*
Manager继承Employee
*/
public class Manager extends Employee {
    //Manager里面有单独的奖金属性
    private int bonus;

    public Manager() {
       super();
    }

    public Manager(String name, String id, int salary, int bonus) {
        super(name, id, salary);
        this.bonus = bonus;
    }

    public int getBonus() {
        return bonus;
    }

    public void setBonus(int bonus) {
        this.bonus = bonus;
    }

    public void work() {
        System.out.println("名字为：" + getName() + "，工号为：" + getId() + "的管理员在努力搞事情！工资为：" + getSalary() + "，奖金为：" + bonus);
    }
}
